<?php get_header(); ?>

  <script>
    $(document).ready(function(){
      $('.sidebar ul li').removeClass('current-menu-item');
      $('.add-bar').remove();
    });
  </script>

  <?php 
/* Search Count */ 
$allsearch = &new WP_Query("s=$s&showposts=-1&cat=4,1,5,11,6,7,8,9,10"); 
$key = wp_specialchars($s, 1);
$count = $allsearch->post_count; _e('');
 wp_reset_query(); 
?>

	<?php if (have_posts()) : ?>
  
    <?php 
      if($paged == 0){
        $now = ($paged+1) * count($posts);
      }else if($paged > 0){
        $now = ($paged-1) * 10 + count($posts);
      }
    ?>
		<h2 class="results">RESULT <?php echo $now; ?> OF <?php echo $count ?></h2>

		<?php //include (TEMPLATEPATH . '/inc/nav.php' ); ?>

		<?php while (have_posts()) : the_post(); ?>      
			<div class="entry">

				<h2><a href="<?php echo get_permalink($post->ID); ?>"><?php the_title(); ?></a></h2>
        <span><?php echo strftime('%d %B %Y',strtotime($post->post_date)); ?></span>

        <p><?php echo substr(strip_tags($post->post_content),0,500); ?></p>

			</div>

		<?php endwhile; ?>

		<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>

	<?php else : ?>

		<h2>No posts found.</h2>

	<?php endif; ?>

<?php get_footer(); ?>
